<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>消耗记录</title>
<link rel="stylesheet" type="text/css"
	href="/three/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="/three/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="/three/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="/three/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="/three/static/h-ui.admin/css/style.css" />
<script type="text/javascript"
	src="/three/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/three/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/three/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript"
	src="/three/static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript"
	src="/three/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript"
	src="/three/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/three/lib/laypage/1.2/laypage.js"></script>
</head>
<body>
	<form action="/three/bis/selectAll" method="post">
		<!-- 消耗记录开始 -->
		<div class="page-container" id="test2">
			<!-- 开始 模糊查询 -->
			<div>
				订单状态:<span class="select-box" style="width: 150px"> <select
					class="select" name="orderStatus" size="1">
						<option value="">请选择订单状态</option>
						<option value="1">草稿</option>
						<option value="2">已预约</option>
						<option value="3">服务中</option>
						<option value="4">待支付</option>
						<option value="5">已支付</option>
						<option value="6">已完成</option>
						<option value="7">已过期</option>
						<option value="8">已撤销</option>
				</select>
				</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 支付方式:<span class="select-box"
					style="width: 150px"> <select class="select" name="payWay"
					size="1">
						<option value="">请选择支付方式</option>
						<option value="1">微信</option>
						<option value="2">支付宝</option>
						<option value="3">美颜币</option>
						<option value="4">套餐</option>
				</select>
				</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				支付时间: <input type="text"
					onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})"
					id="datemin" name="zfTime" value="${zfTime}"
					class="input-text Wdate" style="width: 120px;"> 至 <input
					type="text"
					onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})"
					id="datemax" name="jsTime" value="${jsTime}"
					class="input-text Wdate" style="width: 120px;">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
				订单编号:<input type="text" class="input-text" style="width: 200px"
					name="orderId" value="${orderId}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				顾客账号:<input type="text" class="input-text" style="width: 200px"
					name="phone" value="${customUserId}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				顾客姓名:<input type="text" class="input-text" style="width: 200px"
					name="shopname" value="${shopname}"> <br> 操作员工:<input
					type="text" class="input-text" style="width: 200px" name="username"
					value="${serverUserId}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				消费内容:<input type="text" class="input-text" style="width: 200px"
					name="project" value="${project}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

				<button type="submit" class="btn btn-success" value="查询">
					<i class="Hui-iconfont">&#xe665;</i> 查询
				</button>
				<br>
			</div>
			<!-- 结束 模糊查询 -->
			<!-- 开始 数据显示 -->
			<div class="mt-20">
				<table
					class="table table-border table-bordered table-bg table-hover table-sort table-responsive"
					id="tableExcel">
					<thead>
						<tr class="text-c">
							<td width="80">订单编号</td>
							<td>顾客账号</td>
							<td>顾客姓名</td>
							<td>消费内容</td>
							<td>价格(元)</td>
							<td>支付方式</td>
							<td>实付金额(元)</td>
							<td>消耗颜值</td>

							<td>店铺名称</td>
							<td>服务员工</td>
							<td>最后操作员工</td>
							<td>支付时间</td>

							<td>状态</td>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list}" var="bus">
							<tr class="text-c">
								<td>${bus.orderId }</td>
								<td>${bus.bisCustomUser.mobile }</td>
								<td>${bus.bisCustomUser.username}</td>
								<td>${bus.bisNurseProject.projectName}</td>
								<td>
									<c:if test="${bus.orderMoney==null}">
										<span>0.00</span>
									</c:if>
									<c:if test="${bus.orderMoney!=null}">
										<span>${bus.orderMoney}</span>
									</c:if>
								</td>
								<td><c:if test="${bus.payWay=='1'}">
							  微信
							 </c:if> <c:if test="${bus.payWay=='2'}">
							  支付宝
							 </c:if> <c:if test="${bus.payWay=='3'}">
							  美颜币
							 </c:if> <c:if test="${bus.payWay=='4'}">
							  套餐
							 </c:if></td>
								<td>
									<c:if test="${bus.payMoney==null}">
										<span>0.00</span>
									</c:if>
									<c:if test="${bus.payMoney!=null}">
										<span>${bus.payMoney}</span>
									</c:if>
								</td>
								<td>
									<c:if test="${bus.extendBeautyNum==null}">
										<span>0.00</span>
									</c:if>
									<c:if test="${bus.extendBeautyNum!=null}">
										<span>${bus.extendBeautyNum}</span>
									</c:if>
								</td>

								<td>${bus.bisShop.shopName}</td>
								<td>${bus.bisShopUser.username}</td>
								<td>${bus.bisShopUser.username}</td>
								<td><f:formatDate value="${bus.payTime}"
										pattern="yyyy-MM-dd HH:mm:ss" /></td>

								<td><c:if test="${bus.orderStatus=='1'}">已预约</c:if> <c:if
										test="${bus.orderStatus=='2'}">服务中</c:if> <c:if
										test="${bus.orderStatus=='3'}">待支付</c:if> <c:if
										test="${bus.orderStatus=='4'}">已支付</c:if> <c:if
										test="${bus.orderStatus=='5'}">已完成</c:if> <c:if
										test="${bus.orderStatus=='6'}">已过期</c:if> <c:if
										test="${bus.orderStatus=='7'}">已撤销</c:if></td>

							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<!-- 结束 数据显示 -->
		</div>
		<!-- 消耗记录结束 -->
	</form>
</body>
<script type="text/javascript">
	$('.table-sort').dataTable({
		"aaSorting" : [ [ 1, "desc" ] ],//默认第几个排序
		"bStateSave" : true,//状态保存
	/* "pading":false,
	 "aoColumnDefs": [
	 {"orderable":false,"aTargets":[0,8]}// 不参与排序的列
	 ] */

	});
</script>
</html>